package com.zhz.livegoods.login.dao.impl;

import com.zhz.livegoods.login.dao.LoginLogDao;
import com.zhz.livegoods.pojo.LoginLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

/**
 * 用户登录数据访问接口实现
 * @author zhz
 * @date 2020/08/09
 **/
@Service
public class LoginLogDaoImpl implements LoginLogDao {
    @Autowired
    private MongoTemplate mongoTemplate;
    /**
     * 新增登录日志到mongoDB数据库
     * @param loginLog
     */
    @Override
    public void insertLoginLog(LoginLog loginLog) {
        mongoTemplate.save(loginLog);
    }
}
